package com.mystudy.concurrent.designModel.contextModel;

/**
 * todo
 * @Author acy
 * @Date 2019/05/29
 */
public class ExecutionTask implements Runnable{
	private QueryDBAction queryAction=new QueryDBAction();

	private QueryFromHttpAction httpAction=new QueryFromHttpAction();
	@Override
	public void run() {
		MyContext myContext=ActionContext.getActionContext().getMyContext();
		queryAction.execute();
		System.out.println("-------------------------------------");
		httpAction.execute();
		System.out.println("name-------"+myContext.getName()+"idCard------"+myContext.getCardId());
	}
}
